package net.csdra.DongPoShuZiTuShuGuan.controller;

import org.springframework.web.bind.annotation.ModelAttribute;

import javax.servlet.http.HttpServletResponse;

/**
 * Created by msf on 2018/3/9.
 */
public class ControllerBase {

    @ModelAttribute
    public void setHeader(HttpServletResponse response) {
        response.setHeader("Access-Control-Allow-Origin", "*");
    }
}
